package cn.hncj.lyc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import cn.hncj.lyc.bean.AdvertisementManagement;
import cn.hncj.lyc.dao.AdvertisementManagementMapper;
import cn.hncj.lyc.service.AdvertisementManagementService;
@Service
public class AdvertisementManagementServiceImpl implements AdvertisementManagementService {
	@Autowired
	private AdvertisementManagementMapper advertisementMan;

	@Override
	public void addAdvertisement(AdvertisementManagement advertisementManagement) {
		// TODO Auto-generated method stub
		advertisementMan.addAdvertisement(advertisementManagement);

	}
	
	@Override
	public List<AdvertisementManagement> showAdvertisement(AdvertisementManagement advertisementManagement) {
		// TODO Auto-generated method stub
		return advertisementMan.showAdvertisement(advertisementManagement);

	}

	@Override
	public void deleteAdvertisement(AdvertisementManagement advertisementManagement) {
		// TODO Auto-generated method stub
		advertisementMan.deleteAdvertisement(advertisementManagement);
	}

}
